package com.example.hoasbackend.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lhx
 * @since 2022-03-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hbs_indent")
@ApiModel(value="Indent对象", description="")
public class Indent extends Model<Indent> {
    @JsonSerialize(using= ToStringSerializer.class)
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long commentId;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long batchId;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long roomtypeId;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long hotelId;
    private String description;

    private Double amount;

    public Indent(Indent indent){
        this.id=indent.getId();
        this.amount=indent.getAmount();
        this.commentId=indent.getCommentId();
        this.userId=indent.getUserId();
        this.batchId= indent.getBatchId();
        this.roomtypeId=indent.getRoomtypeId();
        this.description=indent.getDescription();
        this.hotelId=indent.getHotelId();
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
